.class public Lcn/cheln/explorer/ds/scan/Scanner;
.super Lcn/cheln/explorer/ds/sdcard/TypeFilter;

# interfaces
.implements Ljava/io/FileFilter;


# static fields
.field static a:Z

.field private static i:Ljava/lang/String;


# instance fields
.field private b:Lcn/cheln/explorer/ds/scan/d;

.field private c:Landroid/content/Context;

.field private d:Ljava/util/Map;

.field private e:Ljava/lang/String;

.field private f:I

.field private g:Ljava/lang/String;

.field private h:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-string v0, ""

    sput-object v0, Lcn/cheln/explorer/ds/scan/Scanner;->i:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Lcn/cheln/explorer/ds/scan/d;Landroid/content/Context;[Ljava/lang/Integer;[Lcn/cheln/explorer/ds/sdcard/TypeFilter$TextWrapper;[Ljava/lang/String;Ljava/lang/String;)V
    .locals 8

    const-string v7, "apk"

    const-string v6, "audio"

    const-string v5, "image"

    const-string v4, "video"

    const-string v3, "doc"

    invoke-direct {p0, p3, p4, p5}, Lcn/cheln/explorer/ds/sdcard/TypeFilter;-><init>([Ljava/lang/Integer;[Lcn/cheln/explorer/ds/sdcard/TypeFilter$TextWrapper;[Ljava/lang/String;)V

    new-instance v0, Ljava/util/TreeMap;

    sget-object v1, Lcn/cheln/support/b/a;->b:Ljava/util/Comparator;

    invoke-direct {v0, v1}, Ljava/util/TreeMap;-><init>(Ljava/util/Comparator;)V

    iput-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const/4 v0, 0x0

    iput v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->f:I

    iput-object p2, p0, Lcn/cheln/explorer/ds/scan/Scanner;->c:Landroid/content/Context;

    iput-object p6, p0, Lcn/cheln/explorer/ds/scan/Scanner;->e:Ljava/lang/String;

    iput-object p1, p0, Lcn/cheln/explorer/ds/scan/Scanner;->b:Lcn/cheln/explorer/ds/scan/d;

    invoke-virtual {p1, p2, p6}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/content/Context;Ljava/lang/String;)V

    if-eqz p6, :cond_0

    const-string v0, "image"

    invoke-virtual {p6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "jpg"

    const-string v2, "image"

    invoke-interface {v0, v1, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "jpeg"

    const-string v2, "image"

    invoke-interface {v0, v1, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "bmp"

    const-string v2, "image"

    invoke-interface {v0, v1, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "gif"

    const-string v2, "image"

    invoke-interface {v0, v1, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "png"

    const-string v2, "image"

    invoke-interface {v0, v1, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "webp"

    const-string v2, "image"

    invoke-interface {v0, v1, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_1
    if-eqz p6, :cond_2

    const-string v0, "audio"

    invoke-virtual {p6, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    :cond_2
    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "mp3"

    const-string v2, "audio"

    invoke-interface {v0, v1, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "wav"

    const-string v2, "audio"

    invoke-interface {v0, v1, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "amr"

    const-string v2, "audio"

    invoke-interface {v0, v1, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_3
    if-eqz p6, :cond_4

    const-string v0, "video"

    invoke-virtual {p6, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    :cond_4
    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "avi"

    const-string v2, "video"

    invoke-interface {v0, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "wmv"

    const-string v2, "video"

    invoke-interface {v0, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "mpg"

    const-string v2, "video"

    invoke-interface {v0, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "3gp"

    const-string v2, "video"

    invoke-interface {v0, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "mp4"

    const-string v2, "video"

    invoke-interface {v0, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "mkv"

    const-string v2, "video"

    invoke-interface {v0, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "webm"

    const-string v2, "video"

    invoke-interface {v0, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "m4v"

    const-string v2, "video"

    invoke-interface {v0, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "mov"

    const-string v2, "video"

    invoke-interface {v0, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_5
    if-eqz p6, :cond_6

    const-string v0, "doc"

    invoke-virtual {p6, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    :cond_6
    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "doc"

    const-string v1, "doc"

    invoke-interface {v0, v3, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "docx"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "xls"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "xlsx"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "ppt"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "pptx"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "htm"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "html"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "txt"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "rtx"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "rtf"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "zip"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "csv"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "rar"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "pdf"

    const-string v2, "doc"

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_7
    if-eqz p6, :cond_8

    const-string v0, "apk"

    invoke-virtual {p6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_9

    :cond_8
    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "apk"

    const-string v1, "apk"

    invoke-interface {v0, v7, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_9
    if-eqz p6, :cond_a

    const-string v0, "lewa/theme"

    invoke-virtual {p6, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_b

    :cond_a
    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    const-string v1, "lwt"

    const-string v2, "lewa/theme"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_b
    return-void
.end method

.method public static a(Ljava/lang/String;Landroid/content/Context;)V
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    const-string v1, ""

    sget-boolean v0, Lcn/cheln/explorer/ds/scan/Scanner;->a:Z

    if-eqz v0, :cond_0

    const v0, 0x7f050077

    new-array v1, v6, [Ljava/lang/Object;

    sget-object v2, Lcn/cheln/explorer/ds/scan/Scanner;->i:Ljava/lang/String;

    aput-object v2, v1, v5

    invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :goto_0
    return-void

    :cond_0
    :try_start_0
    sget-object v0, Lcom/direction/hold/ui/CountActivity;->v:Lcom/direction/hold/ui/CountActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CountActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/a/c;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/c;->c:Ljava/lang/String;

    sput-object v0, Lcn/cheln/explorer/ds/scan/Scanner;->i:Ljava/lang/String;

    if-nez v0, :cond_2

    const-string v0, ""

    move-object v0, v1

    :goto_1
    sput-object v0, Lcn/cheln/explorer/ds/scan/Scanner;->i:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const v0, 0x7f050014

    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    sget-object v2, Lcom/direction/hold/ui/CountActivity;->v:Lcom/direction/hold/ui/CountActivity;

    invoke-virtual {v2, v5}, Lcom/direction/hold/ui/CountActivity;->b(Z)V

    sget-object v2, Lcom/direction/hold/ui/CountActivity;->v:Lcom/direction/hold/ui/CountActivity;

    invoke-virtual {v2, v5}, Lcom/direction/hold/ui/CountActivity;->d(I)V

    sget-object v2, Lcn/cheln/explorer/ds/scan/Scanner;->i:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_1

    sget-object v2, Lcn/cheln/explorer/ds/scan/Scanner;->i:Ljava/lang/String;

    const-string v3, ""

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_1

    const v2, 0x7f050076

    new-array v3, v6, [Ljava/lang/Object;

    sget-object v4, Lcn/cheln/explorer/ds/scan/Scanner;->i:Ljava/lang/String;

    aput-object v4, v3, v5

    invoke-virtual {p1, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-static {p1, v2, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    :cond_1
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "-------------->>"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v3, Lcn/cheln/explorer/ds/scan/Scanner;->i:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;)V

    sget-object v2, Lcn/cheln/explorer/ds/scan/Scanner;->i:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    const v0, 0x7f050078

    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    move-object v5, v0

    :goto_2
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v2, "-------------->> finalFinishText"

    invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;)V

    new-instance v0, Lcn/cheln/explorer/ds/scan/Scanner$1;

    const-string v2, ""

    const/16 v2, 0x13

    move-object v3, p0

    move-object v4, p1

    invoke-direct/range {v0 .. v5}, Lcn/cheln/explorer/ds/scan/Scanner$1;-><init>(Ljava/lang/String;ILjava/lang/String;Landroid/content/Context;Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    sput-boolean v6, Lcn/cheln/explorer/ds/scan/Scanner;->a:Z

    goto/16 :goto_0

    :cond_2
    :try_start_1
    sget-object v0, Lcn/cheln/explorer/ds/scan/Scanner;->i:Ljava/lang/String;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_1

    :cond_3
    sget-object v0, Lcn/cheln/explorer/ds/scan/Scanner;->i:Ljava/lang/String;

    const-string v2, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    const-string v0, ""

    move-object v5, v1

    goto :goto_2

    :cond_4
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f050075

    invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v2, Lcn/cheln/explorer/ds/scan/Scanner;->i:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "-------------->> finishText"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;)V

    move-object v5, v0

    goto :goto_2

    :catch_0
    move-exception v0

    goto/16 :goto_0
.end method

.method public static a(Ljava/lang/String;Landroid/content/Context;Ljava/lang/String;)V
    .locals 9

    const/4 v7, 0x1

    const-string v8, ""

    new-instance v1, Lcn/cheln/explorer/ds/scan/d;

    invoke-direct {v1}, Lcn/cheln/explorer/ds/scan/d;-><init>()V

    new-instance v0, Lcn/cheln/explorer/ds/scan/Scanner;

    const/4 v2, 0x2

    new-array v3, v2, [Ljava/lang/Integer;

    const/4 v2, 0x0

    const/4 v4, 0x4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v2

    sget-boolean v2, Lcn/cheln/explorer/config/a;->c:Z

    invoke-static {v2}, Lcn/cheln/explorer/config/a;->a(Z)I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, v3, v7

    sget-object v4, Lcn/cheln/explorer/config/Constants;->a:[Lcn/cheln/explorer/ds/sdcard/TypeFilter$TextWrapper;

    const/4 v5, 0x0

    move-object v2, p1

    move-object v6, p0

    invoke-direct/range {v0 .. v6}, Lcn/cheln/explorer/ds/scan/Scanner;-><init>(Lcn/cheln/explorer/ds/scan/d;Landroid/content/Context;[Ljava/lang/Integer;[Lcn/cheln/explorer/ds/sdcard/TypeFilter$TextWrapper;[Ljava/lang/String;Ljava/lang/String;)V

    new-instance v2, Ljava/io/File;

    sget-object v3, Lcn/cheln/explorer/ds/a/b;->c:Ljava/lang/String;

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v0}, Ljava/io/File;->listFiles(Ljava/io/FileFilter;)[Ljava/io/File;

    invoke-virtual {v1, p1}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/content/Context;)V

    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.lewa.app.filemanager.receiveScanSignal"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, ""

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "-------------->>>"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v8, v1}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p0, :cond_0

    invoke-virtual {p0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    const-string v1, "scanFinishedToast"

    invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :cond_0
    const-string v1, "scanFinished"

    invoke-virtual {v0, v1, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    invoke-virtual {p1, v0}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    return-void
.end method


# virtual methods
.method public accept(Ljava/io/File;)Z
    .locals 9

    const/4 v3, 0x0

    const/4 v7, 0x0

    const-string v2, ""

    invoke-super {p0, p1}, Lcn/cheln/explorer/ds/sdcard/TypeFilter;->accept(Ljava/io/File;)Z

    move-result v0

    if-nez v0, :cond_0

    move v0, v7

    :goto_0
    return v0

    :cond_0
    const-string v0, ""

    iput-object v2, p0, Lcn/cheln/explorer/ds/scan/Scanner;->g:Ljava/lang/String;

    const-string v0, ""

    iput-object v2, p0, Lcn/cheln/explorer/ds/scan/Scanner;->h:Ljava/lang/String;

    invoke-virtual {p1}, Ljava/io/File;->isDirectory()Z

    move-result v0

    if-eqz v0, :cond_2

    const-string v0, "folder"

    iput-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->g:Ljava/lang/String;

    :cond_1
    :try_start_0
    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->b:Lcn/cheln/explorer/ds/scan/d;

    invoke-virtual {v0}, Lcn/cheln/explorer/ds/scan/d;->a()Ljava/util/Map;

    move-result-object v0

    iget-object v1, p0, Lcn/cheln/explorer/ds/scan/Scanner;->g:Ljava/lang/String;

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/scan/a;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :try_start_1
    new-instance v2, Lcn/cheln/explorer/beans/b;

    const/4 v1, 0x0

    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1}, Ljava/io/File;->length()J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    invoke-virtual {p1}, Ljava/io/File;->lastModified()J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    invoke-direct {v2, v1, v3, v4, v5}, Lcn/cheln/explorer/beans/b;-><init>(Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, v0, Lcn/cheln/explorer/ds/scan/a;->c:Ljava/util/Map;

    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcn/cheln/explorer/beans/b;

    invoke-virtual {v2, v1}, Lcn/cheln/explorer/beans/b;->equals(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move-result v2

    :try_start_2
    invoke-static {}, Lcn/cheln/explorer/util/SDcardCheck;->b()Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    move-result v3

    if-eqz v3, :cond_6

    move v0, v7

    goto :goto_0

    :cond_2
    invoke-virtual {p1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcn/cheln/support/app/a;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->h:Ljava/lang/String;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->h:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-nez v0, :cond_3

    move v0, v7

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->d:Ljava/util/Map;

    iget-object v1, p0, Lcn/cheln/explorer/ds/scan/Scanner;->h:Ljava/lang/String;

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->g:Ljava/lang/String;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->g:Ljava/lang/String;

    if-nez v0, :cond_4

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->h:Ljava/lang/String;

    invoke-static {v0}, Lcn/cheln/support/app/a;->g(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcn/cheln/explorer/ds/b/b;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->g:Ljava/lang/String;

    :cond_4
    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->g:Ljava/lang/String;

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->g:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_5

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->e:Ljava/lang/String;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/Scanner;->g:Ljava/lang/String;

    iget-object v1, p0, Lcn/cheln/explorer/ds/scan/Scanner;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    :cond_5
    move v0, v7

    goto/16 :goto_0

    :cond_6
    if-nez v2, :cond_7

    :try_start_3
    const-string v3, ""

    if-eqz v1, :cond_9

    const-string v4, "update"

    :goto_1
    invoke-static {v3, v4}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v3, v0, Lcn/cheln/explorer/ds/scan/a;->a:Landroid/net/Uri;

    iget-object v4, p0, Lcn/cheln/explorer/ds/scan/Scanner;->c:Landroid/content/Context;

    if-eqz v1, :cond_a

    const/4 v5, 0x1

    :goto_2
    iget-object v6, p0, Lcn/cheln/explorer/ds/scan/Scanner;->h:Ljava/lang/String;

    invoke-static {p1, v3, v4, v5, v1}, Lcn/cheln/explorer/ds/scan/d;->a(Ljava/io/File;Landroid/net/Uri;Landroid/content/Context;ZLcn/cheln/explorer/beans/b;)Z
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2

    :cond_7
    move v1, v2

    :goto_3
    if-nez v1, :cond_8

    iget v1, p0, Lcn/cheln/explorer/ds/scan/Scanner;->f:I

    add-int/lit8 v1, v1, 0x1

    iput v1, p0, Lcn/cheln/explorer/ds/scan/Scanner;->f:I

    iget v1, p0, Lcn/cheln/explorer/ds/scan/Scanner;->f:I

    rem-int/lit16 v1, v1, 0x1f4

    if-nez v1, :cond_8

    new-instance v1, Landroid/content/Intent;

    const-string v2, "com.lewa.app.filemanager.receiveScanSignal"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcn/cheln/explorer/ds/scan/Scanner;->c:Landroid/content/Context;

    invoke-virtual {v2, v1}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    iput v7, p0, Lcn/cheln/explorer/ds/scan/Scanner;->f:I

    :cond_8
    iget-object v0, v0, Lcn/cheln/explorer/ds/scan/a;->c:Ljava/util/Map;

    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {p1}, Ljava/io/File;->isDirectory()Z

    move-result v0

    if-eqz v0, :cond_b

    invoke-virtual {p1, p0}, Ljava/io/File;->listFiles(Ljava/io/FileFilter;)[Ljava/io/File;

    move v0, v7

    goto/16 :goto_0

    :cond_9
    :try_start_4
    const-string v4, "insert"
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2

    goto :goto_1

    :cond_a
    move v5, v7

    goto :goto_2

    :catch_0
    move-exception v0

    move-object v1, v3

    move v2, v7

    :goto_4
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    move-object v0, v1

    move v1, v2

    goto :goto_3

    :cond_b
    move v0, v7

    goto/16 :goto_0

    :catch_1
    move-exception v1

    move v2, v7

    move-object v8, v0

    move-object v0, v1

    move-object v1, v8

    goto :goto_4

    :catch_2
    move-exception v1

    move-object v8, v1

    move-object v1, v0

    move-object v0, v8

    goto :goto_4
.end method
